package com.lsk.moduleRoute;

import com.jfinal.config.Routes;
import com.lsk.admin.AdminLogin;
import com.lsk.admin.AdminSystem.AdminSystemController;
import com.lsk.admin.interceptor.SessionInterceptor;

import com.lsk.admin.member.MemberController;
import com.lsk.admin.order.OrderController;
import com.lsk.admin.shop.ShopController;
import com.lsk.qiniu.QiniuController;


/**
 * Created by Administrator on 2017/12/11 0011.
 */
public class AdminRoute extends Routes{

    public void config() {
        addInterceptor(new SessionInterceptor());
        /*登录模块*/
        add("admin",AdminLogin.class,"admin");
        /*后台管理模块*/
        add("adminSystem", AdminSystemController.class,"admin/adminSystem");


        /*商品模块*/
        add("shop", ShopController.class,"admin/shop");
        /*订单模块*/

        add("order", OrderController.class,"admin/order");

        /*后台会员模块*/

        add("member", MemberController.class,"admin/member");

        /*后台会员模块*/

        add("qiniu", QiniuController.class);

        //员工模块
        add(new staffRoute());
    }
}
